package Abstract;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:lenovo
 * Date:2024-06-01
 * Time:15:24
 */
public abstract class Employee {
    private String name;
    private int id;
    private double bonus;

    public Employee(String name, int id, double bonus) {
        this.name = name;
        this.id = id;
        this.bonus = bonus;
    }

    public abstract void work();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }
}
